Websydian v6.1 online documentationOnline documentation - WebsydianExpress v3.5

API: AuthorizedEvent.AddRole

Scoped Name

APIServer.AuthorizedEvents.AddRole

Interface

Field Variable ...as Description
AuthorizedEventSurrogate Input Input Uniquely identifies the authorized event you want to add the role to

Mandatory.

RoleSurrogate Input Input Uniquely identifies the role you want to add.

Mandatory

Description

This API adds a role to the specified authorized event.

In this way, all sessions with the specified role will have access to the event.

If you do not have the unique identifications, you can obtain the AuthorizedEventSurrogate by calling AuthorizedEvent.GetEventBySiteName and the RoleSurrogate by calling Role.GetByName.

You can use this API together with AuthorizedEvents.CreateAuthorizedEvent to create an deployment function which auto generates the authorized events in the site you deploy your application to.

Events

WSE0100 - Role not found

WSE0256 - Authorized event not found

WSE0258 - Event and role in different sites

Universal events